<?php

use think\facade\Route;
//总后台其他需要登陆校验的
Route::group(function (){
    Route::rule('Index','Index/index'); //首页信息
    //访客记录
    Route::rule('VisitorList','Visitor/index'); //访客记录列表
    Route::rule('VisitorListExport','Visitor/export'); //导出访客记录
    
    Route::rule('AuthLogin','Auth/login'); //列表
    // 资源
    Route::rule('FileList','File/list'); //列表
    Route::rule('FileUpload','File/upload'); //上传
    Route::rule('FileSave','File/save'); //新增/修改
    Route::rule('FileDelete','File/delete'); //文章

    Route::rule('FileCategoryList','File/categoryList'); //分类列表
    Route::rule('FileCategoryAllList','File/categoryAllList'); //分类列表
    Route::rule('FileCategorySave','File/categorySave'); //新增/修改分类
    Route::rule('FileCategoryDelete','File/categoryDelete'); //删除分类

    Route::rule('FileQiniuToken','File/qiniuToken'); //七牛token

    //员工
    Route::rule('StaffList','Staff/list'); //员工列表
    Route::rule('StaffDetail','Staff/detail'); //员工详情
    Route::rule('StaffSave','Staff/save'); //保存/修改员工
    Route::rule('StaffDelete','Staff/delete'); //删除员工
    Route::rule('StaffQrCodeExport','Staff/export'); //批量导出员工二维码
    Route::rule('StaffSaveExcel','Staff/saveExcel'); //批量导入员工信息
    
    Route::rule('StaffManageList','Staff/manageList'); //获取员工管理员列表
    Route::rule('StaffManageSave','Staff/manageSave'); //批量导入员工信息
    Route::rule('StaffManageBindCode','Staff/bindCode'); //一键生成员工绑定码
    
    Route::rule('StaffProfile','Staff/profile'); //获取员工diy简介
    Route::rule('StaffProfileSave','Staff/profileSave'); //保存员工diy介绍
    Route::rule('StaffShareQrcode','Staff/getShareQRCode'); //获取员工二维码
    

    //管理员
    Route::rule('FirmAccountList','Account/list'); //管理员列表
    Route::rule('FirmAccountDetail','Account/detail'); //管理员详情
    Route::rule('FirmAccountSave','Account/save'); //添加修改管理员
    Route::rule('FirmAccountDelete','Account/delete'); //删除管理员


    // 文章
    Route::rule('ArticleList','Article/list'); //文章列表
    Route::rule('ArticleDetail','Article/detail'); //文章详情
    Route::rule('ArticleSave','Article/save'); //新增/修改文章
    Route::rule('ArticleDelete','Article/delete'); //删除文章

    Route::rule('ArticleCategoryList','Article/categoryList'); //分类列表
    Route::rule('ArticleCategoryAllList','Article/categoryAllList'); //分类列表
    Route::rule('ArticleCategorySave','Article/categorySave'); //新增/修改分类
    Route::rule('ArticleCategoryDelete','Article/categoryDelete'); //删除分类


    // 图册
    Route::rule('AtlasList','Atlas/list'); //图册列表
    Route::rule('AtlasDetail','Atlas/detail'); //图册详情
    Route::rule('AtlasSave','Atlas/save'); //新增/修改图册
    Route::rule('AtlasDelete','Atlas/delete'); //删除图册

    Route::rule('AtlasCategoryList','Atlas/categoryList'); //分类列表
    Route::rule('AtlasCategoryAllList','Atlas/categoryAllList'); //分类列表
    Route::rule('AtlasCategorySave','Atlas/categorySave'); //新增/修改分类
    Route::rule('AtlasCategoryDelete','Atlas/categoryDelete'); //删除分类
    
     // 公司信息
    Route::rule('FirmSave','Firm/save'); //保存
    Route::rule('FirmDetail','Firm/detail'); //详情
    
    // 小程序DIY
    Route::rule('saveStyle','Firm/saveStyle'); //删除分类
    Route::rule('getStyle','Firm/getStyle'); //删除分类
    
    //小程序
    Route::rule('getMiniappInfo','Miniapp/getInfo'); //获取小程序信息
    Route::rule('miniappCommit','Miniapp/commit'); //上传小程序
    Route::rule('getMiniappTrialQRCode','Miniapp/getTrialQRCode'); //获取体验二维码
    
    Route::rule('miniappSubmitAudit','Miniapp/submitAudit'); //提交审核
    Route::rule('miniappSpeedupaudit','Miniapp/speedupaudit'); //加急审核
    Route::rule('miniappUndocodeaudit','Miniapp/undocodeaudit'); //撤回审核
    Route::rule('miniappRelease','Miniapp/release'); //发布上线
    
    Route::rule('miniappSettingCategory','Miniapp/settingCategory'); //获取已设置的类目
    Route::rule('miniappCategoryDelete','Miniapp/deletecategory'); //删除类目
    Route::rule('miniappCategoryAdd','Miniapp/addcategory'); //一件设置类目
     // DIY页面
    Route::rule('pageList','Page/list'); //列表
    Route::rule('pageDetail','Page/detail'); //详情
    Route::rule('pageSave','Page/save'); //新增/保存
    Route::rule('pageDelete','Page/delete'); //删除
    
    
    //webview
    Route::rule('webViewList','WebView/list'); //列表
    Route::rule('webViewDetail','WebView/detail'); //详情
    Route::rule('webViewSave','WebView/save'); //新增/保存
    Route::rule('webViewDelete','WebView/delete'); //删除
    
    Route::rule('webViewDownload','WebView/download'); //下载验证文件
    Route::rule('webViewCheck','WebView/check'); //验证
    
    
    Route::rule('iconCategoryList','Icon/categoryList'); //获取全部分类列表
    Route::rule('iconList','Icon/list'); //获取全部分类列表
    
    
    // 管理
    Route::rule('FirmSettingDetail','Firm/settingDetail'); //获取企业信息
    Route::rule('FirmSettingSave','Firm/settingSave'); //修改企业信息

})->middleware([\app\admin\middleware\Base::class,\app\admin\middleware\Check::class]);

//Route::rule('iconCategorySave','Icon/categorySave'); //添加图标分类



Route::rule('iconSave','Icon/save'); //添加修改图标

Route::miss(function() {
    return '404！您访问的地址不存在！';
});